package org.suigara.d3.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CommUtil {
	public static String convertTime(long seconds) {
		Calendar cal = Calendar.getInstance();
		cal.setTimeInMillis(seconds * 1000);
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return sdf.format(cal.getTime());
	}
}
